from decimal import Decimal


def get_decimal_precision(decimal):
    temp = Decimal(str(decimal))
    temp = temp.as_tuple()
    temp = int(temp.exponent)
    return abs(temp)
